package com.supinfo.suptracking.dao;

import com.supinfo.suptracking.entity.Car;
import com.supinfo.suptracking.entity.Gpspositionhistory;
import java.util.Date;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Fabien, Jérémy, Ludovic, Brice
 */

@Local
public interface GpsPositionHistoryDao {
    
    void addPositionHistory(Gpspositionhistory positionHistory);
    void delPositionHistory(Gpspositionhistory positionHistory);
    void delPositionHistory(Long id);
    
    List<Gpspositionhistory> getAllPositionHistory(String longitude, String latitude);
    List<Gpspositionhistory> getAllPositionHistoryByCar(Car car);
    List<Gpspositionhistory> getAllPositionHistoryByDate(Date date);
}
